<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller {
    
    private $_layout; 
    private $_data;
    
    public function __construct() {
        parent::__construct();
        $this->_layout = CONST_LAYOUT;
        $this->_data['title'] = CONST_TITLE;
        $this->_data['pagina'] = $this->router->fetch_method().'.php';
    }
    
    public function index()
   {
       $this->_data['footer'] = 'footer/index.php'; 
       $this->load->view($this->_layout,$this->_data);
   }
}